var url = window.location.href;
var session = url.split("=")[1];
information(session);
function information(session) {
    $.post("http://www.brandt-beer.com/app/agents/getAgent",
        {SESSION_ID:session},function (data) {
            console.log(data);
            var date = data.data;
//                console.log(date);
            var number = document.getElementById("number");
            number.innerText=date.PHONE;
            var transfer = document.getElementById("transfer");
            transfer.src = date.SCREENSHOT;
            var positive = document.getElementById("positive");
            positive.src = date.IDCARD_FACE;
            var reverse = document.getElementById("reverse");
            reverse.src = date.IDCARD_SIDE;
            var audit = date.STATUS;
            if (audit==0){
                document.getElementById("state").innerText="审核中";
            }else if(audit==1){
                var layout = document.getElementById("state");
                layout.innerHTML="审核通过!"+"<br>"+"<span>"+"恭喜您成为博兰特啤酒代理商"+"</span>";
            }else if(audit==2){
                var notThrough = document.getElementById("state");
                notThrough.innerHTML="审核不通过";
                notThrough.style.color="red"
                document.getElementById("upload_Again").innerText="请重新上传资料";
                var application = document.getElementById("an_Application");
                application.innerText="重新申请";
                application.style.background="red"
            }else{
                document.getElementById("state").innerHTML="禁用"
            }
        })
}